<form name="loginForm" id="loginForm" method="post" onsubmit="return actionLogin(this);" enctype="multipart/form-data" action="{$smarty.const.HOST_VFRIEND}index/login">
    <input type="hidden" name="ptypelogin" id="ptypelogin" value="1"/>
    <input type="hidden" name="ppassword" id="ppassword" class="text"/>
    {if isset($type_err)}
    	<input type="hidden" name="pemail" value="{$objUser->email}" id="pemail" class="text"/>
    {else}
        <div class="userInput" style="margin-top:20px;">
            <label for="pemail" class="text">Email đăng nhập:</label>
            <input type="text" name="pemail" value="{if isset($smarty.session.uemail)}{$smarty.session.uemail|escape}{elseif isset($ckEmail)&&$ckEmail!=''}{$ckEmail}{/if}" id="pemail" class="text"/>
        </div>
    {/if}
    <div class="userInput">
        <label for="ppassword" class="text">Mật khẩu:</label>
        <input type="password" name="ppassword_type" id="ppassword_type" value="{if isset($smarty.cookies.LOGIN_PASS)&&$smarty.cookies.LOGIN_PASS!=''&&isset($ckRemember)&&$ckRemember==1}{$smarty.cookies.LOGIN_PASS}{/if}" class="text"/>
    </div>
    <div class="userInput">
        <input type="checkbox" name="prememberme" id="prememberme" class="chk" {if isset($ckRemember)&&$ckRemember==1}checked="checked"{/if}/>
        <label for="prememberme" class="chk">Ghi nhớ đăng nhập</label>
   	</div>
    <div class="userInput{if isset($type) && $type==1} bPadding5{/if}">
        <input type="submit" value="Đăng nhập" class="btn{if isset($type) && $type==1} rFloat{/if}" />
    </div>
    <div class="userInput">
    	{if isset($type) && $type==1}
        	<a href="{$smarty.const.LINK_INDEX_FORGET_PASSWORD}" class="forget-password">Quên mật khẩu</a>&nbsp;|&nbsp;<a href="{$smarty.const.LINK_INDEX_GETCODE_ACCOUNT}">Nhận lại mã kích hoạt</a>
            
        {else}
        	<ul>
            	<li class="firstChild"><a href="{$smarty.const.LINK_INDEX_FORGET_PASSWORD}">Quên mật khẩu</a></li>
                <li><a href="{$smarty.const.LINK_INDEX_GETCODE_ACCOUNT}">Nhận lại mã kích hoạt</a></li>
                <li><a href="{$smarty.const.LINK_INDEX_REGISTER}">Đăng ký tài khoản mới</a></li>
            </ul>
        {/if}
    </div>
</form>